package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwReplayMapper;
import com.ruoyi.stock.domain.QwReplay;
import com.ruoyi.stock.service.IQwReplayService;

/**
 * 回归Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwReplayServiceImpl implements IQwReplayService 
{
    @Autowired
    private QwReplayMapper qwReplayMapper;

    /**
     * 查询回归
     * 
     * @param replayId 回归主键
     * @return 回归
     */
    @Override
    public QwReplay selectQwReplayByReplayId(Long replayId)
    {
        return qwReplayMapper.selectQwReplayByReplayId(replayId);
    }

    /**
     * 查询回归列表
     * 
     * @param qwReplay 回归
     * @return 回归
     */
    @Override
    public List<QwReplay> selectQwReplayList(QwReplay qwReplay)
    {
        return qwReplayMapper.selectQwReplayList(qwReplay);
    }

    /**
     * 新增回归
     * 
     * @param qwReplay 回归
     * @return 结果
     */
    @Override
    public int insertQwReplay(QwReplay qwReplay)
    {
        return qwReplayMapper.insertQwReplay(qwReplay);
    }

    /**
     * 修改回归
     * 
     * @param qwReplay 回归
     * @return 结果
     */
    @Override
    public int updateQwReplay(QwReplay qwReplay)
    {
        return qwReplayMapper.updateQwReplay(qwReplay);
    }

    /**
     * 批量删除回归
     * 
     * @param replayIds 需要删除的回归主键
     * @return 结果
     */
    @Override
    public int deleteQwReplayByReplayIds(Long[] replayIds)
    {
        return qwReplayMapper.deleteQwReplayByReplayIds(replayIds);
    }

    /**
     * 删除回归信息
     * 
     * @param replayId 回归主键
     * @return 结果
     */
    @Override
    public int deleteQwReplayByReplayId(Long replayId)
    {
        return qwReplayMapper.deleteQwReplayByReplayId(replayId);
    }
}
